package com.shyt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shyt.dao.SysDepartmentRequestVo;
import com.shyt.dao.SysDepartmentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface SysDepartmentMapper extends BaseMapper<SysDepartmentVo> {


    List<SysDepartmentVo> getLoginDepartments(Long id);

    List<SysDepartmentVo> getDepartments(String departmentNm);

    List<SysDepartmentVo> getDepartmentXlk(Long id);

    void addDepartment(@Param("params") SysDepartmentRequestVo sysDepartmentRequestVo);

    List<SysDepartmentVo> selectDepartmentById(String pid);

    void editDepartment(@Param("params") SysDepartmentRequestVo sysDepartmentRequestVo);
    void deleteDepartment(@Param("params") SysDepartmentRequestVo sysDepartmentRequestVo);
    void deleteUserDepartment(@Param("params") SysDepartmentRequestVo sysDepartmentRequestVo);

}
